var htmlmin = require('gulp-htmlmin');
var gulp = require('gulp');
// var rootPath = "./publish/"; //正式打包配置的sass编译路径
var rootPath = "./";  // 开发所配置的编译路径

gulp.task('htmlmin', function () {
    var options = {
        removeComments: true,//清除HTML注释
        collapseWhitespace: true,//压缩HTML
        caseSensitive: true
    };
    gulp.src('./src/app/pages/print/templates/originExpeditionPrint/expeditionPrint.component.html')
        .pipe(htmlmin(options))
        .pipe(gulp.dest(rootPath + "src/app/pages/print/templates/"));
});